<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Mali OpenCL SDK v1.1.0: /home/jenkins/workspace/opencl_sdk_daily/Architecture/x86/OS/linux/samples/fir_float/assets/fir_float.cl File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Mali OpenCL SDK v1.1.0
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Home</span></a></li>
      <li><a href="pages.html"><span>Help&#160;and&#160;Tutorials</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('fir__float_8cl.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">fir_float.cl File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="fir__float_8cl_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a054b6a28d5e2412083493f2d43ba7210"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fir__float_8cl.html#a054b6a28d5e2412083493f2d43ba7210">FW_SCALE</a>&#160;&#160;&#160;0.00390625f</td></tr>
<tr class="separator:a054b6a28d5e2412083493f2d43ba7210"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4c882aae33d779624d02d0d88bae565"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fir__float_8cl.html#ad4c882aae33d779624d02d0d88bae565">FW_UL</a>&#160;&#160;&#160;(30.0f * FW_SCALE)</td></tr>
<tr class="separator:ad4c882aae33d779624d02d0d88bae565"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada3c939d265394a260f3bcf800c16d01"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fir__float_8cl.html#ada3c939d265394a260f3bcf800c16d01">FW_UM</a>&#160;&#160;&#160;(5.0f * FW_SCALE)</td></tr>
<tr class="separator:ada3c939d265394a260f3bcf800c16d01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86163952d447939d88b2ab454efd091a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fir__float_8cl.html#a86163952d447939d88b2ab454efd091a">FW_UR</a>&#160;&#160;&#160;(6.0f * FW_SCALE)</td></tr>
<tr class="separator:a86163952d447939d88b2ab454efd091a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7935f8e7004ebaa9c1cb835ebb7576e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fir__float_8cl.html#ac7935f8e7004ebaa9c1cb835ebb7576e">FW_CL</a>&#160;&#160;&#160;(19.0f * FW_SCALE)</td></tr>
<tr class="separator:ac7935f8e7004ebaa9c1cb835ebb7576e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d47ed70581c7a693231547336cb00aa"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fir__float_8cl.html#a5d47ed70581c7a693231547336cb00aa">FW_CM</a>&#160;&#160;&#160;(30.0f * FW_SCALE)</td></tr>
<tr class="separator:a5d47ed70581c7a693231547336cb00aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a85069496abcfdd6757ca710c185c19"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fir__float_8cl.html#a1a85069496abcfdd6757ca710c185c19">FW_CR</a>&#160;&#160;&#160;(9.0f * FW_SCALE)</td></tr>
<tr class="separator:a1a85069496abcfdd6757ca710c185c19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a436f4eeb8849d5ddf8c0fcba12a847b6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fir__float_8cl.html#a436f4eeb8849d5ddf8c0fcba12a847b6">FW_BL</a>&#160;&#160;&#160;(15.0f * FW_SCALE)</td></tr>
<tr class="separator:a436f4eeb8849d5ddf8c0fcba12a847b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad946956a7dc74b2b24008dfbcf6cc56f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fir__float_8cl.html#ad946956a7dc74b2b24008dfbcf6cc56f">FW_BM</a>&#160;&#160;&#160;(5.0f * FW_SCALE)</td></tr>
<tr class="separator:ad946956a7dc74b2b24008dfbcf6cc56f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2d22f5bd6ac4522b7fe5cbc1b32c566"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fir__float_8cl.html#ac2d22f5bd6ac4522b7fe5cbc1b32c566">FW_BR</a>&#160;&#160;&#160;(40.0f * FW_SCALE)</td></tr>
<tr class="separator:ac2d22f5bd6ac4522b7fe5cbc1b32c566"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a1bacdbaeb8f7bf3c8ac34929a28e689c"><td class="memItemLeft" align="right" valign="top">__kernel void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fir__float_8cl.html#a1bacdbaeb8f7bf3c8ac34929a28e689c">fir_float</a> (__global const float *restrict input, __global float *restrict output, const int width)</td></tr>
<tr class="memdesc:a1bacdbaeb8f7bf3c8ac34929a28e689c"><td class="mdescLeft">&#160;</td><td class="mdescRight">FIR filter kernel function.  <a href="#a1bacdbaeb8f7bf3c8ac34929a28e689c"></a><br/></td></tr>
<tr class="separator:a1bacdbaeb8f7bf3c8ac34929a28e689c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a436f4eeb8849d5ddf8c0fcba12a847b6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FW_BL&#160;&#160;&#160;(15.0f * FW_SCALE)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="fir__float_8cl_source.html#l00019">19</a> of file <a class="el" href="fir__float_8cl_source.html">fir_float.cl</a>.</p>

</div>
</div>
<a class="anchor" id="ad946956a7dc74b2b24008dfbcf6cc56f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FW_BM&#160;&#160;&#160;(5.0f * FW_SCALE)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="fir__float_8cl_source.html#l00020">20</a> of file <a class="el" href="fir__float_8cl_source.html">fir_float.cl</a>.</p>

</div>
</div>
<a class="anchor" id="ac2d22f5bd6ac4522b7fe5cbc1b32c566"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FW_BR&#160;&#160;&#160;(40.0f * FW_SCALE)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="fir__float_8cl_source.html#l00021">21</a> of file <a class="el" href="fir__float_8cl_source.html">fir_float.cl</a>.</p>

</div>
</div>
<a class="anchor" id="ac7935f8e7004ebaa9c1cb835ebb7576e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FW_CL&#160;&#160;&#160;(19.0f * FW_SCALE)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="fir__float_8cl_source.html#l00016">16</a> of file <a class="el" href="fir__float_8cl_source.html">fir_float.cl</a>.</p>

</div>
</div>
<a class="anchor" id="a5d47ed70581c7a693231547336cb00aa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FW_CM&#160;&#160;&#160;(30.0f * FW_SCALE)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="fir__float_8cl_source.html#l00017">17</a> of file <a class="el" href="fir__float_8cl_source.html">fir_float.cl</a>.</p>

</div>
</div>
<a class="anchor" id="a1a85069496abcfdd6757ca710c185c19"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FW_CR&#160;&#160;&#160;(9.0f * FW_SCALE)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="fir__float_8cl_source.html#l00018">18</a> of file <a class="el" href="fir__float_8cl_source.html">fir_float.cl</a>.</p>

</div>
</div>
<a class="anchor" id="a054b6a28d5e2412083493f2d43ba7210"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FW_SCALE&#160;&#160;&#160;0.00390625f</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="fir__float_8cl_source.html#l00012">12</a> of file <a class="el" href="fir__float_8cl_source.html">fir_float.cl</a>.</p>

</div>
</div>
<a class="anchor" id="ad4c882aae33d779624d02d0d88bae565"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FW_UL&#160;&#160;&#160;(30.0f * FW_SCALE)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="fir__float_8cl_source.html#l00013">13</a> of file <a class="el" href="fir__float_8cl_source.html">fir_float.cl</a>.</p>

</div>
</div>
<a class="anchor" id="ada3c939d265394a260f3bcf800c16d01"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FW_UM&#160;&#160;&#160;(5.0f * FW_SCALE)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="fir__float_8cl_source.html#l00014">14</a> of file <a class="el" href="fir__float_8cl_source.html">fir_float.cl</a>.</p>

</div>
</div>
<a class="anchor" id="a86163952d447939d88b2ab454efd091a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FW_UR&#160;&#160;&#160;(6.0f * FW_SCALE)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="fir__float_8cl_source.html#l00015">15</a> of file <a class="el" href="fir__float_8cl_source.html">fir_float.cl</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a1bacdbaeb8f7bf3c8ac34929a28e689c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__kernel void fir_float </td>
          <td>(</td>
          <td class="paramtype">__global const float *restrict&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">__global float *restrict&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>width</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FIR filter kernel function. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">input</td><td>Input image data in row-major format. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>Width of the image passed in as input. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">output</td><td>Output image after FIR has been applied. Resulting image depends on the coefficients used. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="fir__float_8cl_source.html#l00029">29</a> of file <a class="el" href="fir__float_8cl_source.html">fir_float.cl</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_6f9635d4fbfa321d4c00f29df5cd540c.html">samples</a></li><li class="navelem"><a class="el" href="dir_cbd57f3d7d7e9034c814d8124b45dbb2.html">fir_float</a></li><li class="navelem"><a class="el" href="dir_75f962b3696c1618a5722e38faad1027.html">assets</a></li><li class="navelem"><a class="el" href="fir__float_8cl.html">fir_float.cl</a></li>
    <li class="footer">
        <a href="http://www.arm.com/">(C) ARM Ltd. 2013</a>
    </li>
  </ul>
</div>
</body>
</html>
